import Vue from "vue";  //导入 Vue 模块
import VueRouter from "vue-router"; // 第二步：导入 VueRouter 模块
// eslint-disable-next-line no-unused-vars
import User from "@/views/User.vue"
import Home from "@/views/Home.vue"
import Student from "@/views/Student";
Vue.use(VueRouter); //第三步：Vue.use 安装注册
const routes = [
    // {
    //     path: "/",
    //     redirect:"/home"
    // },
    // {
    //     path: "/home",
    //     component: Home
    // },

    // {
    //     path: "/",
    //     redirect:"/user"
    // },
    // {
    //     path: "/user",
    //     component: User
    // }
    {
        path: "/",
        redirect:"/student"
    },
    {
        path: "/student",
        component: Student
    }

]
const router = new VueRouter({
    routes:routes
//第四步：创建 VueRouter 对象
});
export default router;  //导出此模块
